package com.example.jpa.service;

import com.example.jpa.dao.SchoolDao;
import com.example.jpa.entity.School;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolService
{
    @Autowired
    SchoolDao schoolDao;

    public List<School> list(int id){
        List<School> list = schoolDao.findAllById(id);
        return list;
    }
}
